]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panelMenu: Separate from ui chrome layer
authorRay Strode <rstrode@redhat.com>
Sun, 28 Aug 2011 03:44:04 +0000 (23:44 -0400)
committerRay Strode <rstrode@redhat.com>
Sun, 28 Aug 2011 16:17:13 +0000 (12:17 -0400)
The chrome layer contains the user interface elements (e.g.,
the panel) that disappear when fullscreen windows get displayed.

Panel menus are currently put in the chrome layer, but don't need
to be, since they are only displayed when the user is interacting
with the shell and not a fullscreen application.

Putting panel menus in the chrome layer does mean they will get
stacked below shell interface elements that aren't in the chrome layer,
though.

This commit changes panel menus to be on the same layer as most other
shell elements, so they get properly stacked above those elements.

https://bugzilla.gnome.org/show_bug.cgi?id=657082

js/ui/panelMenu.js

index 44e2078b8b23a350715167a39d6076a2ac57a670..151f35afad3e5c81b0198dc60a7784393b50117d 100644 (file)
@@ -28,7 +28,7 @@ Button.prototype = {
         this.menu.actor.add_style_class_name('panel-menu');
         this.menu.connect('open-state-changed', Lang.bind(this, this._onOpenStateChanged));
         this.menu.actor.connect('key-press-event', Lang.bind(this, this._onMenuKeyPress));
-        Main.layoutManager.addChrome(this.menu.actor);
+        Main.uiGroup.add_actor(this.menu.actor);
         this.menu.actor.hide();
     },